I need to know inside of "while(fscanf != EOF){blah}" if the next fscanf is going to return EOF-- be

Posted by Rancur3p1c on Stack Overflow See other posts from Stack Overflow or by Rancur3p1c
Published on 2010-04-30T08:43:11Z Indexed on 2010/04/30 8:47 UTC
Read the original article Hit count: 251

Filed under:
|
|
|

I've got some code executing in a while(fscanf != EOF) loop. However, even when fscanf has finished executing, I need to keep running that code until some conditions are met. I mean I guess I could copy/paste the code to outside the while(fscanf) loop, and only use global variables, but that seems messy. Surely someone has encountered something like this before and has a cleaner solution.

© Stack Overflow or respective owner

Related posts about fscanf

Related posts about eof